/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enteties.article;

import java.util.Collection;
import java.util.List;
import javax.ejb.Local;
import util.article.ModelDetails;

/**
 *
 * @author Joris
 */
@Local
public interface ModelFacadeLocal {

    void create(Model model);

    void edit(Model model);

    void remove(Model model);

    Model find(Object id);

    List<Model> findAll();

    List<Model> findRange(int[] range);

    int count();

    public Integer createModel(String name, String code);

    public void editModel(Integer id, String name, String code);

    public ModelDetails getModels(Integer id);

    public void removeModel(Integer id);

    public Collection<ModelDetails> getAllModelDetails();

    public Model createModel(ModelDetails md, Article a);

    public ModelDetails convert(Model model);

    public Collection<ModelDetails> convert(Collection<Model> models);
    
}
